
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        background: #f5f5f5;
        min-height: 100vh;
        position: relative;
    }

    /* 登录容器 */
    .auth-box {
        width: 400px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 30px 40px;
    }

    /* 标题样式 */
    .auth-title {
        text-align: center;
        font-size: 24px;
        color: #333;
        margin-bottom: 30px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    /* 表单组 */
    .form-group {
        margin-bottom: 25px;
        position: relative;
    }

    .form-group label {
        display: block;
        color: #666;
        margin-bottom: 8px;
        font-size: 14px;
    }

    /* 输入框样式 */
    .input-field {
        width: 100%;
        height: 40px;
        padding: 0 15px;
        border: 1px solid #ddd;
        border-radius: 20px;
        font-size: 14px;
        transition: all 0.3s;
    }


    /* 图标装饰 */
    .form-group::after {
        position: absolute;
        right: 15px;
        top: 38px;
        font-size: 16px;
    }

    .username::after { content: "✉️"; }
    .password::after { content: "🔒"; }

    /* 登录按钮 */
    .auth-btn {
        width: 100%;
        padding: 12px;
        background: #ff4444;
        color: white;
        border: none;
        border-radius: 20px;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .auth-btn:hover {
        background: #ff6666;
        box-shadow: 0 2px 8px rgba(255,68,68,0.3);
    }

    /* 辅助链接 */
    .auth-links {
        text-align: center;
        margin-top: 20px;
        font-size: 14px;
    }

    .auth-links a {
        color: #ff4444;
        text-decoration: none;
        margin: 0 10px;
    }

    .auth-links a:hover {
        text-decoration: underline;
    }

    /* 错误提示 */
    .error-msg {
        color: #ff4444;
        font-size: 12px;
        margin-top: 5px;
        display: none;
    }

    /* 响应式调整 */
    @media (max-width: 480px) {
        .auth-box {
            width: 90%;
            padding: 20px;
        }
    }
/* 密码强度指示器 */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin: 8px 0;
    position: relative;
}



.strength-text {
    font-size: 12px;
    min-width: 40px;
    text-align: right;
    position: absolute;
    right: 0;
    top: 8px;
    font-size: 12px;
    color: #666;
}

/* 强度等级配色 */
[data-strength="0"] { --strength-width: 25%; --strength-color: #ff4444; }
[data-strength="1"] { --strength-width: 50%; --strength-color: #ffa534; }
[data-strength="2"] { --strength-width: 100%; --strength-color: #52c41a; }
.nav-buttons {
  float: right;
  padding: 15px 20px;
}

.nav-btn {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  padding: 8px 20px;
  border-radius: 15px;
  transition: all 0.3s;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.1);
}
.strength-indicator {
    height: 100%;
    width: -6px;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.form-group.invalid .input-field {
    border-color: #ff4444;
    animation: shake 0.4s;
}

.form-group.invalid .error-msg {
    display: block;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.show-pwd-btn {
    position: absolute;
    right: 15px;
    top: 38px;
    cursor: pointer;
    user-select: none;
    z-index: 2;
    opacity: 0.6;
    transition: all 0.3s;
}
.show-pwd-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}
.form-group.password::after {
    display: none; 
}
.terms{
    margin-top: -20px;
    margin-bottom: 9px;
    margin-left: 10%  ;
}
